package com.study.hot.jetpack.paging.paging3

/**
 * <pre>
 *     author : slx
 *     time   : 2021/02/02
 *     desc   :
 * </pre>
 */
class DataRespority {
    private val apiService = RetrofitService.createServiceApi(DataApi::class.java)

    suspend fun loadData(pageNum: Int): DemoReqData? {
        return try {
            apiService.getData(pageNum)
        } catch (e: Exception) {
            null
        }
    }
}